#include "musicListWidget.h"

MusicListWidget::MusicListWidget()
{

}
MusicListWidget::MusicListWidget(QWidget *parent):QListWidget(parent){

}
void MusicListWidget::reupdate()
{
    clear();
    musicList.addToMusicListWidget(this);
}
void MusicListWidget::removeMusic()
{
    int row = currentRow();
    musicList.removeMusic(row);

    QListWidgetItem *tmp = takeItem(row);
    removeItemWidget(tmp);
    delete tmp;
}
